package com.example.test0520.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.example.test0520.R;

public class WelcomeActivity extends BaseActivity {

    private Button wcLogin;
    private Button wcReg;

    @Override
    protected int initLayout() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initView() {
        wcLogin = (Button) findViewById(R.id.wc_login);
        wcReg = (Button) findViewById(R.id.wc_reg);

    }

    @Override
    protected void initData() {
//        getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
        wcLogin.setOnClickListener(v -> navigateTo(LoginActivity.class));
        wcReg.setOnClickListener(v -> navigateTo(RegisterActivity.class));
    }
}